package cc.yugu.yhdw.common.domain.basic;

import cc.yugu.yhdw.common.domain.IntIdEntity;
import cc.yugu.yhdw.common.entity.json.DateTimeSerializer;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.util.Date;
/**
 * 终端升级实体类
 * 
 * @Date:Created in 2018/7/25 14:35
 * @Author:
 * @Modified By: zjn 2018/7/25 14:35
 */ 
public class TerminalUpgradePack extends IntIdEntity {
    Integer agentId;
    String upgradeName; // 升级包名称
    String fileName;  // 文件名称
    String filePath;  // 文件路径
    String oldVersion; // 旧版本号
    String newVersion; // 新版本号
    String memo;    // 备注
    Date updateTime;

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public String getUpgradeName() {
        return upgradeName;
    }

    public void setUpgradeName(String upgradeName) {
        this.upgradeName = upgradeName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getOldVersion() {
        return oldVersion;
    }

    public void setOldVersion(String oldVersion) {
        this.oldVersion = oldVersion;
    }

    public String getNewVersion() {
        return newVersion;
    }

    public void setNewVersion(String newVersion) {
        this.newVersion = newVersion;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    @JsonSerialize(using = DateTimeSerializer.class)
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
